package com.xucan.mapperstruct;


public class M1 {
    public static void main(String[] args) {
        Student student = new Student();
        student.setId(1);
        student.setName("张三");
        ClassInfo classInfo = new ClassInfo();
        classInfo.setClassId(1);
        classInfo.setClassName("一班");
        student.setClassInfo(classInfo);
        StudentDto dto = StudentMapper.INSTANCE.toDto(student, classInfo);
        System.out.println(dto);

    }
}
